<?php

namespace App\Http\Resources;

use App\Traits\BaseResource;
use Illuminate\Http\Resources\Json\Resource;

class Link extends Resource {
	use BaseResource;

	private function toEdit($request) {
		return $this->filterFields([
			'id' => $this->id,
			'title' => $this->title,
			'abbreviation' => $this->abbreviation,
			'website' => $this->website,
			'synopsis' => $this->synopsis,
			'status' => $this->status,
		]);
	}

	private function toDefault($request) {
		return $this->filterFields([
			'id' => $this->id,
			'title' => $this->title,
			'abbreviation' => $this->abbreviation,
			'website' => $this->website,
			'synopsis' => $this->synopsis,
			'status' => $this->status,
			'created_at' => $this->created_at,
			'updated_at' => $this->updated_at,
		]);
	}
}
